<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
  <s:actionerror/>
	<table border="0">
	  <s:iterator value="orders" id="order">
	    <tr>
	      <th colspan="2"><s:property/></th>
	      <th rowspan="<s:property value="#order.periodicals.size+2"/>" valign="middle">
	        <s:if test="((days>3)&&(status==0))">
	          <s:text name="order.expired"/>
	          <s:a action="UpdateOrder.action">
	            <s:text name="order.blacklist"/>
	            <s:param name="id" value="id"/>
	            <s:param name="status" value="2"/>
	          </s:a><br>
	        </s:if>
	        <s:property value="getText(#order.statusText)"/>
	        <s:if test="status==0">
	          <s:a action="UpdateOrder.action">
	            <s:text name="order.paid"/>
	            <s:param name="id" value="id"/>
	            <s:param name="status" value="1"/>
	          </s:a>
	        </s:if>
	        <s:if test="status==1">
	          <s:a action="UpdateOrder.action">
	            <s:text name="order.received"/>
	            <s:param name="id" value="id"/>
	            <s:param name="status" value="3"/>
	          </s:a>
	        </s:if>        
	      </th>
	    </tr>
	    <s:iterator value="#order.periodicals" id="periodical">
	      <tr>
	        <td><s:property/></td>
	        <td><s:property value="price"/>$</td>
	      </tr>
	    </s:iterator>
	     <tr>
	      <th>
	        <s:text name="order.owner"/>
	        <s:a action="ShowUser.action">
	          <s:property value="owner"/>
	          <s:param name="id" value="owner.id"/>
	        </s:a>
	      </th>
	      <th><s:text name="order.price"/><s:property value="price"/>$</th>
	    </tr>    
	    <tr><td colspan="3"><hr color="#000080" size="0" width="100%" noshade></td></tr>
	  </s:iterator>
	</table>
</body>
</html>